package com.example.hao.logger;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.orhanobut.logger.Logger;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Logger.d("hello everyone");
    }

    @Override
    protected void onStart() {
        super.onStart();
        new Thread(new Runnable() {
            @Override
            public void run() {
                Logger.i("where are you?");
            }
        }).start();
    }

    @Override
    protected void onResume() {
        super.onResume();
        Logger.e("I miss you.");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Logger.w("Do you wanna build a snowman?");
    }

    @Override
    protected void onStop() {
        super.onStop();

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();

    }
}
